From 7c4dc2c62703fc589553b114133ccd21225b0998 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 8 Apr 2008 09:57:37 +0100 Subject: [PATCH] xm: Fix xm shutdown for xendomains. If xm shutdown command is passed the domain ID, it should still wait for the shutdown completion of the domain if passed option --wait. Signed-off-by: Masaki Kanno --- tools/python/xen/xm/shutdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/shutdown.py b/tools/python/xen/xm/shutdown.py index 6903183e9a..2e6294a979 100644 --- a/tools/python/xen/xm/shutdown.py +++ b/tools/python/xen/xm/shutdown.py @@ -144,7 +144,7 @@ def main_all(opts, args): def main_dom(opts, args): if len(args) == 0: opts.err('No domain parameter given') if len(args) > 1: opts.err('No multiple domain parameters allowed') - dom = args[0] + dom = sxp.child_value(server.xend.domain(args[0]), 'name') if serverType == SERVER_XEN_API: dom = get_single_vm(dom) mode = shutdown_mode(opts) -- 2.30.2